package com.guli.mall.member.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guli.common.utils.PageUtils;
import com.guli.common.utils.Query;

import com.guli.mall.member.mapper.MemberCollectSpuMapper;
import com.guli.mall.member.entity.MemberCollectSpuEntity;
import com.guli.mall.member.service.MemberCollectSpuService;


@Service("memberCollectSpuService")
public class MemberCollectSpuServiceImpl extends ServiceImpl<MemberCollectSpuMapper, MemberCollectSpuEntity> implements MemberCollectSpuService {

    @Override
    public PageUtils<MemberCollectSpuEntity> queryPage(Integer currentPage, Integer size, Map<String, Object> params) {

        Page<MemberCollectSpuEntity> page = new Page<>(currentPage, size);

        Page<MemberCollectSpuEntity> resultPage = this.page(page);

        return new PageUtils<>(resultPage);
    }

}